import request from "@/utils/request";
// 获取自己管理的学校
export function imanage_school(query) {
  return request({
    url: "/system/school/imanage/schoolList",
    method: "get",
    params: query,
  });
}


// 查询学校列表
export function listPost_school(query) {
  return request({
    url: "/system/school/list",
    method: "get",
    params: query,
  });
}
// 批量绑定大区
export function batchBindRegion(query) {
  return request({
    url: "/system/school/batchBindRegion",
    method: "put",
    data: query,
  });
}

// 查询学校管理员列表
export function getAdmin_school(postId) {
  return request({
    url: "system/school/managerList/" + postId,
    method: "get",
  });
}
// 查询学校详细
export function getPost_school(postId) {
  return request({
    url: "/system/school/" + postId,
    method: "get",
  });
}

// 新增
export function addPost_school(data) {
  return request({
    url: "/system/school/",
    method: "post",
    data: data,
  });
}

// 修改
export function updatePost_school(data) {
  return request({
    url: "/system/school/",
    method: "put",
    data: data,
  });
}

// 删除
export function delPost_school(postId) {
  return request({
    url: "/system/school/" + postId,
    method: "delete",
  });
}

// 删除
export function schoolAudit(data) {
  return request({
    url: "/manager/schoolAudit",
    method: "post",
    data: data,
  });
}
